#!/bin/bash
clear;
Now_time=$(date);
echo  -ne "\e[1;32m  Now_time:${Now_time} \e[0m" && sleep 0.1;
echo -e "\e[32m   PID:$(echo $$) \e[0m" && sleep 0.5;
#echo -e "\e[33m Enter your rosbag Mode:[0:roslaunch Or 1:play Or 2:record]  \c \e[0m";
#read mode;

echo -e "\e[32mOk, Record a rosbag! \e[0m" && sleep 1;
echo -e "\e[33mPlease Enter The Rosbag Name: \c \e[0m";
read ros_name
rosbag record /mavros -O /home/ubuntu/OutdoorFly/src/outdoor_offb/script/${ros_name}.bag -b 4096;

exit 0;